package hn.cch.consumer;

import hn.cch.common.bean.Bean;
import hn.cch.common.model.User;
import hn.cch.common.service.LoginService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LoginConsumer {

    private static Logger logger = LoggerFactory.getLogger(LoginConsumer.class);

    public void login(){
        LoginService loginService = (LoginService) Bean.getBean("login");
        User user = new User("username", "password");
        logger.info("login:{}", loginService.login(user));
    }

}
